﻿@{
    ViewBag.Title = "房网旅游地产网";
}
<div id="bigAd" class="slideshowlite" style="width: 960px; height: 320px;">
    @foreach (var item in ViewBag.SlideList)
    {
        <a href="@item.Link" target="blank" rel="1" style="display: block; z-index: 1;">
        <img src="@(ViewBag.uploadAddress + ViewBag.Folder + item.Img)" width="960" height="320"></a>
    }
</div>
<div id="container">
    <!--去哪玩版块-->
    <div id="quna">
        <div class="header_quna"><h2>同城活动</h2></div>
        <h4><span>@ViewBag.ActList[0].Target</span>@ViewBag.ActList[0].Title</h4>
        <div class="detail_quna">
            <img src="@(ViewBag.uploadAddress + ViewBag.Folder + ViewBag.ActList[0].Img)" width="150" height="90">
            <p><a href="@ViewBag.ActList[0].Link" target="blank" class="apply">报 名</a></p>
        </div>
        @for (int i = 1; i < @ViewBag.ActList.Count; i++)
        {
            <p class="others"><span>@ViewBag.ActList[i].Target</span><a href="@ViewBag.ActList[i].Link" target="_blank">@ViewBag.ActList[i].Title</a></p>
        }
    </div>
    <!--查攻略版块-->
    <div id="gonglie">
        <h2><a href="http://bbs.szhome.com/fetchdata.aspx?projectid=340010" target="_blank">查攻略</a></h2>
        <ul>
            @foreach (var item in @ViewBag.StrList)
            {
                <li>
                    <span>@item.Destination</span>
                    <a href="@item.Link" target="_blank">@item.Title</a>
                </li>
            }
        </ul>
    </div>
    <!--翻相册版块-->
    <div id="gallery">
        <h2>翻相册</h2>
        <div class="otherphotos">
            <ul>
            @foreach (var item in ViewBag.AlbList)
            {
                <li>
                    <a href="@item.ImgLink"><img src="@(ViewBag.uploadAddress + ViewBag.Folder + item.Img)" width="106" height="75"></a>
                    <a href="@item.Link">@item.Title</a>
                </li>
            }
            </ul>
        </div>
    </div>
</div>
<div class="title_recomment">
    <h2>项目推荐</h2>
    <ul>
        <li><a href="/jingqu/index/0">去海边</a></li>
        <li><a href="/jingqu/index/1">泡温泉</a></li>
        <li><a href="/jingqu/index/2">爱游湖</a></li>
        <li><a href="/jingqu/index/3">逛山林</a></li>
        <li><a href="/jingqu/index/4">高尔夫</a></li>
        <li><a href="/jingqu/index/5">主题公园</a></li>
    </ul>
</div>
@foreach (var item in ViewBag.PList)
{
<div class="project_recomment">
    <p><img src="/style/web/images/top.jpg" width="960" height="5"></p>
    <div class="title_content">
        <h2><a href="/xiangmu/detail/@item.XMID"><b>@item.XMMC</b></a></h2>
        <ul>
            <li><a href="/xiangmu/unit/@item.XMID">户型 |</a></li>
            <li><a href="/xiangmu/jiaotong/@item.XMID">交通配套 |</a></li>
            <li><a href="/xiangce/photos/@item.XMID">相册 |</a></li>
            <li><a href="/xiangmu/news/@item.XMID">动态 |</a></li>
            <li><a href="/xiangmu/detailx/@item.XMID">详情 |</a></li>
        </ul>
    </div>
    <div class="content_recomment">
        <!--left of recomment-->
        <div class="left_recomment">
            <div class="img_item img_item_index">
                <a href="/xiangmu/detail/@item.XMID"><img src="uploadfiles/others/@item.XMLBT" width="300" height="220"></a>           
                <div class="tag"><img src="/style/web/images/icon_recomment.png" width="80" height="80"></div>
            </div>
            <div class="detail_item_index">
                <p class="description_item"><b>@item.XMLB</b></p>
                <p>项目特色：<a href="javascript:void(0)" onclick="LinkToLandscape.call(this)" title="@item.XMLB">@item.XMTS</a></p>
                <p>项目地址：@item.XMDZ</p>
                <p>物业类型：@item.WYLX</p>
                <div class="itemOper">
                    <span>均价：<em>@item.JJ</em></span>
                    <a href="@item.TGDZ"><img src="/style/web/images/btn_tuan.jpg" width="108" height="40"></a></div>
                <div class="phone_item phone_item_index">
                    <img src="/style/web/images/icon_phone.jpg" width="39" height="39">
                    <p>售楼处免费咨询电话<br>
                    <span>@item.ZXDH</span></p>
                </div>
            </div>
        </div>
        <!--right of recomment-->
        <div class="right_recomment">
            <div class="relatedPlace">
                <img src="/uploadfiles/others/@item.XGT" width="177" height="130">
                <ul>
                    <li><a href="/xiangce/landspace_photo_list?id=@item.JQID">景区风光</a></li>
                    <li><a href="javascript:void(0)" onclick="LinkToLandscape.call(this)" title="@item.XMLB">行车路线</a></li>
                    <li><a href="javascript:void(0)" onclick="LinkToLandscape.call(this)" title="@item.XMLB">景区介绍</a></li>
                </ul>
            </div>
            <h3>@item.JQMC</h3>
            <p>@(item.XCLX.ToString().Length > 80 ? item.XCLX.ToString().Substring(0,80) + "... ..." : item.XCLX)<a href="javascript:void(0)" onclick="LinkToLandscape.call(this)" title="@item.XMLB">更多</a></p>
        </div>
    </div>
    <p><img src="/style/web/images/bottom.jpg" width="960" height="5"></p>
</div>
}
<script type="text/javascript">
    $(function () {
        // 首页相册滑动以前放单独js到全局是会报错的
        $("#bigAd").slideshow({
            pauseSeconds: 4,
            height: 320,
            caption: false
        });
    });
</script>